#include <bits/stdc++.h>
using namespace std;

using llt = long long;
using pii = pair<int, int>;
using pll = pair<llt, llt>;

template<typename T>
istream & operator >> (istream & is, vector<T> & vec) {
    for(auto & i : vec) is >> i;
    return is;
}

template<typename T>
void input(vector<T> & vec, int n){
    vec.assign(n + 1, {});
    for(int i=1;i<=n;++i) cin >> vec[i];
    return;
}


int N, A;
vector<int> T;

void work(){
    cin >> N >> A;
    T.assign(N, {});
    cin >> T;
    int ans = 0;
    for(auto i : T){
        if(ans <= i){
            ans = i + A;
        }else{
            ans += A;
        }
        cout << ans << "\n";
    }
    
    return;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--) work();
    return 0;
}
